Conditions | 2 |
Total Lines | 11 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Extension } from 'nunjucks'; |
||
10 | |||
11 | public parse(parser: any, nodes: any, _lexer: any) { |
||
12 | const tagToken = parser.nextToken(); |
||
13 | |||
14 | const args = parser.parseSignature(null, true); |
||
15 | parser.advanceAfterBlockEnd(tagToken.value); |
||
16 | |||
17 | const methodName = |
||
18 | tagToken.value === 'table' ? 'renderTable' : 'renderInlineTable'; |
||
19 | |||
20 | return new nodes.CallExtension(this, methodName, args, []); |
||
21 | } |
||
47 |